import React from 'react'
import { Swiper, Image } from 'react-vant';

export default function Swipers(props) {

    

    return (
        <div>
            <div className="demo-swiper">
                <Swiper autoplay={1500}>
                    {
                        props.swiper.map((item,index) => {
                            return (
                                <Swiper.Item key={index}>
                                    <Image src={item} height={250}/>
                                </Swiper.Item>
                            )
                        })
                    }
                </Swiper>
            </div>
        </div>
    )
}
